extends basic
block header
    style.
        body {padding-top: 100px;padding-bottom: 40px;background-color: #eee;}
block content
    div(class="container-fluid")
        div(class="row")
            div(class="col-sm-6")
                img(class="col-sm-12",src="/cover.png")
            div(class="col-sm-6")
                form(class="form-signin" novalidate ng-controller="SignInCtrl" name="SigninForm")
                    fieldset(ng-disabled="processing")
                        h2(class="form-signin-heading") 欢迎使用PowerTeam
                        input(type="email" name="Email" ng-model="User.Email" class="form-control" placeholder="请输入邮件" required autofocus)
                        div(ng-show="SigninForm.Email.$dirty&&SigninForm.Email.$error.required" class="text-danger") 请输入邮件
                        div(ng-show="SigninForm.Email.$dirty&&SigninForm.Email.$error.email" class="text-danger") 邮件格式不正确
                        input(type="password" name="Password" ng-model="User.Password" class="form-control" placeholder="请输入密码" required)
                        div(ng-show="SigninForm.Password.$dirty&&SigninForm.Password.$error.required" class="text-danger") 请输入密码
                        button(class="btn btn-lg btn-primary btn-block" id="btnSignin" type="button" ng-click="signIn()",data-loading-text="正在验证",ng-disabled="SigninForm.$invalid") 登陆
                        a(href="/SignUp" class="btn btn-lg btn-primary btn-block") 注册
                        div(class="alert alert-danger" ng-show="!isMatch") 用户名密码不正确，请重新输入!